package com.wolfking.converter.entity;

import com.google.common.collect.Maps;
import lombok.Data;

import java.util.Map;

@Data
public class QueryBodyParam {

    private String key;

    private Map<String, Object> params;


    public Map<String, Object> getParams() {
        if (this.params == null) {
            this.params = Maps.newHashMap();
        }
        Map<String,Object> obj = Maps.newHashMap();
        obj.put("key", key);
        obj.putAll(params);
        return obj;
    }
}
